//
// Created by xkj on 2020/9/28.
//

#ifndef PROJ_ANDROID_SIOUSERINFO_H
#define PROJ_ANDROID_SIOUSERINFO_H

#include <string>

class SIOUserInfo
{
public:
    std::string roomId;
    std::string role;
    std::string avatar;
    std::string nickname;
    std::string gender;
    std::string signature;
    std::string lastSign;

    SIOUserInfo& operator=(const SIOUserInfo& oneB)
    {
        // 避免自赋值
        if (this != &oneB)
        {
            avatar = oneB.avatar;
            gender = oneB.gender;
            nickname  = oneB.nickname;
            role = oneB.role;
            roomId = oneB.roomId;
            signature = oneB.signature;
            lastSign = oneB.lastSign;
        }

        return *this;
    }
};

#endif //PROJ_ANDROID_SIOUSERINFO_H
